<div lang="en" xmlns:th="http://www.thymeleaf.org">
	<div class="con_left">
		<!--入院记录  -->
		<div id="tab_ruyuan" class="cl_1">
			<div class="box-body table-responsive no-padding">
				<table id="ruyuanTable" class="table table-hover">
				</table>
			</div>
		</div>
		<!--首次病程记录  -->
		<div id="tab_shoucibingcheng" class="cl_1 hide">
			<div class="box-body table-responsive no-padding">
				<table id="shoucibingchengTable" class="table table-hover">
				</table>
			</div>
		</div>
		<!--查房记录  -->
		<div id="tab_chafang" class="cl_1 hide">
			<div class="box-body table-responsive no-padding">
				<table id="chafangTable" class="table table-hover">
				</table>
			</div>
		</div>
		<!--病程记录  -->
		<div id="tab_bingcheng" class="cl_1 hide">
			<div class="box-body table-responsive no-padding">
				<table id="bingchengTable" class="table table-hover">
				</table>
			</div>
		</div>
		<!--会诊记录  -->
		<div id="tab_huizhen" class="cl_1 hide">
			<div class="box-body table-responsive no-padding">
				<table id="huizhenTable" class="table table-hover">
				</table>
			</div>
		</div>
		<!--护理记录  -->
		<div id="tab_huli" class="cl_1 hide">
			<div class="box-body table-responsive no-padding">
				<table id="huliTable" class="table table-hover">
				</table>
			</div>
		</div>
		<!--出院记录  -->
		<div id="tab_chuyuan" class="cl_1 hide">
			<div class="box-body table-responsive no-padding">
				<table id="chuyuanTable" class="table table-hover">
				</table>
			</div>
		</div>
		<div class="cl_2">
			<!--  
			<div class="cl2_1">
				<h1>2017-08-20 邓应忠副主任医师</h1>
				<p>入院记录</p>
				<ul>
					<li>姓名</li>
					<li>性别</li>
					<li>年龄</li>
					<li>民族</li>
					<li>婚姻</li>
					<li>出生地</li>
					<li>职业</li>
					<li>入院时间</li>
					<li>记录时间</li>
				</ul>
			</div>
			-->
			<div class="cl2_2">
				<ul id="bingliTabs" class="tab">
					<li data-tab="ruyuan" class="on">入院记录</li>
					<li data-tab="shoucibingcheng">首次病程
						<p style="text-align: left; padding-left: 10px;">记录</p>
					</li>
					<li data-tab="chafang">查房记录</li>
					<li data-tab="bingcheng">病程记录</li>
					<li data-tab="huizhen">会诊记录</li>
					<li data-tab="huli">护理记录</li>
					<li data-tab="chuyuan">出院记录</li>
				</ul>
			</div>
		</div>
	</div>
	<!-- 入院记录表格模板 -->
	<script id="tpl-ruyuanTable" type="text/html">
		<tbody>
			<tr>
				<th>项目</th>
				<th>内容</th>
			</tr>
			{{each tableData as item index}}
				{{if item.fieldVal != ''}}
					<tr>
						<td>{{item.fieldName}}</td>
						<td>{{item.fieldVal}}</td>
					</tr>
				{{/if}}
			{{/each}}
		</tbody>
	</script>
	<!-- 文书表格模板 -->
	<script id="tpl-document" type="text/html">
	<tbody>
		<tr>
			<th>提交时间</th>
			<th>内容</th>
		</tr>
		{{if tableData.length > 0}}
				{{each tableData as item index}}
					<tr>
						<td>{{item.submitTime}}</td>
						<td>
							{{if item.documentFormat=='txt'}}
								{{item.documentText}}
							{{else}}
								<a class="doclink" data-documentId="{{item.id}}" data-documentFormat="{{item.documentFormat}}" href="javascript:void(0)">{{item.documentName}}.{{item.documentFormat}}</a>
							{{/if}}
						</td>
					</tr>
				{{/each}}
		{{else}}
			<tr>
				<td>暂无</td>
				<td>暂无</td>
			</tr>
		{{/if}}
	</tbody>
	</script>
	<!-- 查看文书内容弹出层模板 -->
	<script id="tpl-document-dialog" type="text/html">
		{{if documentFormat=='jpg'}}
		<img src="{{ctx}}/api/patientView/document/{{documentId}}/stream" style="width: 850px; height: 600px;"/>
		{{else if documentFormat=='png'}}
		<img src="{{ctx}}/api/patientView/document/{{documentId}}/stream" style="width: 850px; height: 600px;"/>
		{{else if documentFormat=='pdf'}}
			<embed src="{{ctx}}/api/patientView/document/{{documentId}}/pdf" type="application/pdf" style="width: 850px; height: 600px;"/>
		{{/if}}
	</script>
	<script th:if="${projectModel=='dev'}" th:src="@{/static/js/business/patientview/bingli.js(v=${#dates.createNow().getTime()})}"></script>
	<script th:if="${projectModel=='product'}" th:src="@{/static/js/business/patientview/bingli.js}"></script>
</div>